package cn.harvest.storage.bo.admin;

import java.util.List;

import cn.harvest.storage.dao.DAO;

public class PermissionService {

	private DAO dao = DAO.getDAO();

	private PermissionService() {

	}

	public static PermissionService getService() {

		PermissionService service = new PermissionService();
		return service;
	}

	public List selectPermission() {

		StringBuffer sql = new StringBuffer();
		sql.append(" SELECT p.permission_id, p.permission_name");
		sql.append(" FROM permission p");
		sql.append(" ORDER BY p.permission_id");

		System.out.println("### - EmployeeService -> selectPermission -> #SQL \r\n	 " + sql);
		
		return dao.selectBySQL(sql.toString());
	}
	
	public static void main(String[] args) {

	}
}
